package com.atguigu.client;

import com.atguigu.entity.CartInfo;
import com.atguigu.result.RetVal;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@FeignClient(value = "shop-seckill")//, fallback = ProductFallback.class)
public interface SecKillFeignClient {

    //1.查询秒杀商品列表
    @GetMapping("/seckill/queryAllSeckillProduct")
    public RetVal queryAllSeckillProduct();

    //2.查询秒杀商品详情信息
    @GetMapping("/seckill/querySeckillProductById/{skuId}")
    public RetVal querySeckillProductById(@PathVariable Long skuId);

    //3.查询用户是否有抢购资格 hasQualified
    @GetMapping("/seckill/seckillConfirm")
    public RetVal seckillConfirm();

}
